    local model = require "sailor.model"
    local user = {}

    user.attributes = { -- Attributes and their validation rules
      -- = {  = {},  = {}...}
      id = {},
      username = { not_empty = {} },
      password = { not_empty = {}, len = {6,10} }
    }

    user.db = {
      key = 'id',
      table = 'user'
    }

    function user.test() return "test" end -- A public method

    return model:new(user)

